package com.twu.biblioteca.items;

/**
 * @author Alvi Jonathan Sait
 */
public enum Rating {

    ONE(1), TWO(2), THREE(3), FOUR(4), FIVE(5),
    SIX(6), SEVEN(7), EIGHT(8), NINE(9), TEN(10),
    UNRATED(0);

    private final int value;
    private final String description;

    private Rating(int value) {
        this.value = value;
        this.description = this.value + "/10";
    }

    public int getValue() {
        return value;
    }

    @Override
    public String toString() {
        return description;
    }
}
